//package com.example.demo.demos.web;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//

//@Component
//@Slf4j
//public class startLiftTask {
//    private boolean f = true;
//    @Scheduled(cron = "0/1 * * * * ?")
//    public void startLiftTask() {
//        if (f){
//            System.out.println("修改数据库");
//            f = false;
//            System.out.println("修改数据库后不再执行");
//        }
//        int aaa =0;
//        for (int i = 0; i < 100; i++) {
//            System.out.println(aaa++);
//            f =true;
//        }
//
//
////        Integer sa = 1;
////        if (sa == 1 && f){
////            System.out.println("执行修改数据库");
////            System.out.println(f);
////            System.out.println("修改为false");
////        }
////        if (!f) {
////            System.out.println("f 为 false");
////        }
//    }
//}
